home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000182_icon-group-sender _Tue Aug 13 06:52:30 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 13 Aug 1996 16:20:36 MST
  2. Date: Tue, 13 Aug 96 14:47:15 BST
  3. Message-Id: <24851.9608131347@subnode.aiai.ed.ac.uk>
  4. From: Jeff Dalton <jeff@aiai.ed.ac.uk>
  5. Subject: Re: CGI Tips
  6. To: Clinton Jeffery <jeffery@dragon.cs.utsa.edu>, cdt@post.its.mcw.edu
  7. In-Reply-To: Clinton Jeffery's message of Fri, 9 Aug 1996 08:49:16 -0500
  8. Cc: icon-group@cs.arizona.edu
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10. Status: O
  11.  
  12. > [Chris Tenaglia posted a CGI scripting question.]
  13. > Well, one tip I think I have for you is that I don't think the name=fred part
  14. > comes to your program as a command line argument, I think it comes via an
  15. > environment variable ("name") being set to a value ("fred").
  16.  
  17. That depends.  There are two "methods": GET and POST.  GET puts
  18. the args in the env var QUERY_STRING.  POST puts them in standard
  19. input (stdin).
  20.  
  21. There's also an env var PATH_INFO.  If your CGI script is
  22.  
  23.    http://.../myscript
  24.  
  25. and the URL used to access the script is
  26.  
  27.   http://.../myscript/a/b/c
  28.  
  29. Then PATH_INFO will contain "a/b/c".
  30.  
  31. -- jeff
  32.